From 676fac93133f585375c2d0060ad7f7edf15d65d3 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sat, 18 Oct 2008 22:22:51 +0000 Subject: [PATCH] mmo: Fix MSVC problems. --- mmo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mmo.c b/mmo.c index 5bbcfaded..9159291a3 100644 --- a/mmo.c +++ b/mmo.c @@ -157,11 +157,11 @@ mmo_readstr(void) static int -mmo_fillbuf2(void *buf, const gbsize_t bufsz, const int count, const int need_all) +mmo_fillbuf2(void *buf, const gbsize_t bufsz, const gbsize_t count, const int need_all) { - int res; + gbsize_t res; - if (count > bufsz) fatal(MYNAME ": Internal error (bufsz too small)!\n"); + if (count > (int)bufsz) fatal(MYNAME ": Internal error (bufsz too small)!\n"); memset(buf, 0xFF, count); res = gbfread(buf, 1, count, fin); -- 2.30.2